package nowCoder;

import java.util.Scanner;

public class HJ69 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int o = sc.nextInt();
        int[][] a = new int[n][m];
        int[][] b = new int[m][o];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                a[i][j] = sc.nextInt();
            }
        }
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < o; j++) {
                b[i][j] = sc.nextInt();
            }
        }
        int[][] x = new int[n][o];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < o; j++) {
                for (int k = 0; k < m; k++) {
                    x[i][j] += b[k][j]*a[i][k];
                }
                System.out.print(x[i][j] + " ");
            }
            System.out.println();
        }
    }
}
